package se.webbzon.boltzmann.game.object.dialogue.factory;

import se.webbzon.boltzmann.game.object.dialogue.layout.DialogueLayout;
import se.webbzon.boltzmann.game.object.dialogue.word.AbstractDialogueWord;
import se.webbzon.boltzmann.game.object.dialogue.word.SmallDialogueWord;

public class SmallDialogueWordFactory extends AbstractDialogueWordFactory {
	
	// The text string
	private final String text;
	
	/*============================================================
	Constructors
	============================================================*/
	
	/** Creates a new small dialogue word factory with a given text. **/
	public SmallDialogueWordFactory(String text) {
		this.text = text;
	}
	
	/*============================================================
	Public Methods
	============================================================*/

	@Override public AbstractDialogueWord createWord(DialogueLayout layout) {
		return new SmallDialogueWord(layout,text);
	}

}
